#ifndef CTCPUPDATE_H
#define CTCPUPDATE_H

#include <QTcpServer>
#include <QTcpSocket>

class CTcpUpdate : public QTcpServer
{
    Q_OBJECT
public:
    explicit CTcpUpdate(QObject *parent = 0);

    void startServer();

    QTcpSocket *m_tcpsocket;
    QByteArray inBytes;

signals:
    void s_settingChange();

public slots:
    void newConnect();
    void sendMessage();
    void sockDisconnect();
    void stopServer();
};

#endif // CTCPUPDATE_H
